-- GENERATED SPELL FOR [Shatterhorn] --


function spell0_24178(pUnit, Event) --@Ground Smash,Self--
pUnit:FullCastSpellOnTarget(12734,pUnit)
pUnit:RegisterEvent('Sorts_24178', 2278, 1)
end

function Sorts_24178(pUnit, Event)
local choix_sorts_24178 = math.random(0, 0)
if choix_sorts_24178 == 0 then
pUnit:RegisterEvent('spell0_24178', 1, 1)
end
end

function mob24178_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24178', math.random(1500, 3000), 1)
end

function mob24178_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24178_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24178_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24178, 1, 'mob24178_Action')
RegisterUnitEvent(24178, 2, 'mob24178_Leave')
RegisterUnitEvent(24178, 3, 'mob24178_Kill')
RegisterUnitEvent(24178, 4, 'mob24178_Die')
